home *** CD-ROM | disk | FTP | other *** search
- JProxy 1.1.0
-
- The download includes:
-
- proxy.ear - J2EE Application. It contains:
- proxyservlet.war - servlet-based JProxy Server
- samples.jar - Stateful Session Test Bean and Client Application
-
- proxyclient.jar - client-side JProxy
-
- testclient.jar - Client Application for Stateful Session Test Bean
-
- docs - JProxy documentation
- JProxy API
- JProxy help html-files
-
-
- examples - source code of JProxy examples:
- samples - Stateful Session Test Bean and Client Application
- mail - EJB-based Mailing-list
- clock - JMS-based clock
- messanger - JMS-based chat-applet
-
-
- samples.jar may be used as test of JProxy.
- Try the test first.
-
- The file contains following JProxy examples:
-
- 1. Statefull Session Bean example.
- 2. RMI Example
-
- For simplicity reason samples.jar may be used for both client and server.
- It contains source code and classes.
-
- You may simply unzip samples.jar.
-
- It contains both Test EJB and Client Application.
- EJB Test Server side samples.jar is included in proxy.ear.
-
- It also includes source code and classes for EJB and client.
- You may simply unzip samples.jar.
-
- Before trying example place proxy.ear in deployment directory of your Application Server.
- For JBoss it is jboss/deploy and for Orion it is orion/applications.
-
- To execute client type from command prompt:
-
-
- -------- EJB Test WITH JProxy ---------
- UNIX
- test.sh -Djava.naming.provider.url=Protocol://your_server_name:port
-
- NT
- test.bat -Djava.naming.provider.url=Protocol://your_server_name:port
-
-
- Where:
- Protocol - "http" or "https". Default is "http"
-
- YuorServerName - name of the host where your EJB Server is running.
- If it is local then just use "localhost".
- Default is "localhost".
-
- Port - port of your Web Server (Servlet Engine) where JProxy deployed.
- Default is 80.
-
-
- -------- EJB Test WITOUT JProxy on JBoss ---------
- UNIX
- Open test.sh. Read instructions.
- test.sh -Djava.naming.provider.url=your_server_name
-
- NT
- Open test.sh. See instructions
- java -Djava.naming.factory.initial=com.jproxy.proxy.NamingContextFactory -Djava.naming.provider.url=your_server_name -cp samples.jar;proxyclient.jar;j2api.jar com.jproxy.samples.ejb.test.SessionClient
- test.bat -Djava.naming.provider.url=your_server_name
-
- YuorServerName - name of the host where your EJB Server is running.
- If it is local then just use "localhost".
- Default is "localhost".
-
- Port - RMI registry port is 1099
-
-
-
- -------- RMI Test ---------
- UNIX
- To start Server:
- test_rmi_server.sh -Djava.naming.provider.url=Protocol://your_server_name:port
-
- To execute client:
- test_rmi_client.sh -Djava.naming.provider.url=Protocol://your_server_name:port
-
- NT
- To start Server:
- test_rmi_server.bat -Djava.naming.provider.url=Protocol://your_server_name:port
-
- To execute client:
- test_rmi_client.bat -Djava.naming.provider.url=Protocol://your_server_name:port
-
-
- For more details see readme.txt in samples.jar
-
- You may also check JProxy from Web Browser from URL:
- http://your_server_name:port/proxyservlet/test.jsp
-
- The EJB implementation returns server local time to the client.
- Last line will look like:
- >>>Server Time: Tue Feb 12 10:08:21 EST 2002
-
- Debug information will be printed during the test.
- To disable output of debuging information you have to modify proxy.properties "com.jproxy.proxy.log.level".
- You my set it to "NONE" to completly disable output to stdout.
- See configuration.html for more information.
-
- If your client is local and uses http protocol with default port (80)
- then you do not need to specyfy server URL
-
- To use "https" protocol you have to enable SSL on your server.
-
- If you get folowing exception:
-
- java.io.FileNotFoundException: http://localhost/proxyservlet/servlet/proxyservlet
- at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
-
- ...then you did not specify server URL properly. Be sure that port number is correct.
-
-
-
-
-
- -------- JProxy Performance Test --------------
- usage: java -cp samples.jar;proxyclient.jar:j2api.jar [-Djava.properties]
- com.jproxy.samples.ejb.test.PerformanceClient
- [ [http://|https://]YourServerName:[port] [#_of_loops] [#_of_bytes] [#_of_threads] ]
-
- where:
- #_of_loops - number of loops. Default 1"+
- #_of_bytes - number of bytes send(received) to host in request. Default 0"+
- #_of_threads - number of threads. Default 1"+
-
- UNIX
- test_performance.sh -Djava.naming.provider.url=Protocol://your_server_name:port
-
- NT
- test_performance.bat -Djava.naming.provider.url=Protocol://your_server_name:port
-
-
- Where:
- Protocol - "http" or "https". Default is "http"
-
- YuorServerName - name of the host where your EJB Server is running.
- If it is local then just use "localhost".
- Default is "localhost".
-
- Port - port of your Web Server (Servlet Engine) where JProxy deployed.
- Default is 80.
-
-
-
-
- The sample bean and client have been successfully tested on JBoss, Orion WebLogic and JONAS Application Servers.
-
-
-
- [JProxy LLC]
-